cc.game.onStart = function(){
    var sys = cc.sys;
    if(sys.os === sys.OS_ANDROID){
        cc.view.enableRetina(false);
        console.log("ANDROID");
    }else{
        cc.view.enableRetina(true);
        console.log("NOT_ANDROID");
    }
    cc.view.adjustViewPort(true);
    cc.view.setDesignResolutionSize(640, 960, cc.ResolutionPolicy.NO_BORDER);
    cc.view.resizeWithBrowserSize(true);
    cc.LoaderScene.preload(g_resources, function () {
        cc.director.runScene(new enterScene());
    }, this);
};
cc.game.run();